home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 525 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.6 KB

  1. From: Stephen Usher <Stephen.Usher@earth.ox.ac.uk>
  2. Subject: Re: gethostname library function
  3. Date: Wed, 6 Oct 1993 17:15:32 +0100 (BST)
  4. In-Reply-To: <9310061612.AA03226@phlem.ph.kcl.ac.uk> from "sjg@phlem.ph.kcl.ac.uk" at Oct 6, 93 05:12:27 pm
  5. Mime-Version: 1.0
  6.  
  7. >> >Comments ?
  8. >> 
  9. >> I agree, even better would be not to trust the HOSTNAME environment
  10. >> variable! :-)
  11. >>
  12. >> I believe MiNT should hold at least two things..
  13. >>     A hostname
  14. >>     A domainname
  15. >> 
  16. >> In a root read-writable, non-root read-only shared memory segment.
  17. >
  18. >Hmm - seems like a good idea. Could set the variables in the mint.cnf file
  19. >(or store them in the kernel)
  20.  
  21. Well, you could store the defaults in the kernel, the rest could be set
  22. using programs.. after all, as long as the programs were running as root
  23. they could access the memory and write the data. Otherwise new system calls
  24. could be added to write that info.
  25.  
  26. >
  27. >> It would be nice if it could hold other such information as well (such as
  28. >> possibly an IP address etc).
  29. >
  30. >Have to wait for tcpip first :-)
  31.  
  32. Not really... merely allocate memory to store one in the shared memory
  33. segment. I'm sure one 8K page of memory would be enough for everything
  34. you'll need in there, including a hostid. :-)
  35.  
  36. You might need more for IP.. routing tables etc.
  37.  
  38. >
  39. >Simon.
  40. >
  41.  
  42. Steve
  43.  
  44. -- 
  45. ---------------------------------------------------------------------------
  46. Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
  47. E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).
  48. Tel:- Oxford (0865) 282110 (UK) or +44 865 282110 (International).
  49.